* alloc.c (compact_small_strings): Tighten assertion a little.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Apr 2011 00:42:41 +0000 (17:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Apr 2011 00:42:41 +0000 (17:42 -0700)
src/ChangeLog
src/alloc.c

index 2b7ad802d79fd837eb98f673fa0325ec1290fb37..21b5bd2cfa1e12956790f5f8daad8391b6cef16e 100644 (file)
@@ -1,5 +1,7 @@
 2011-04-19  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * alloc.c (compact_small_strings): Tighten assertion a little.
+
        Replace pEd with more-general pI, and fix some printf arg casts.
        * lisp.h (pI): New macro, generalizing old pEd macro to other
        conversion specifiers.  For example, use "...%"pI"d..." rather
index 423c1f167db8374f17662912b2ec59e9697665fd..82be8a903b4638f465efba451f1772cd3c469d4b 100644 (file)
@@ -2140,7 +2140,7 @@ compact_small_strings (void)
              /* Copy, and update the string's `data' pointer.  */
              if (from != to)
                {
-                 xassert (tb != b || to <= from);
+                 xassert (tb != b || to < from);
                  memmove (to, from, nbytes + GC_STRING_EXTRA);
                  to->string->data = SDATA_DATA (to);
                }